package com.ttx.pattern.example.chain.tomcat.filterchain;

import com.ttx.pattern.example.chain.tomcat.servlet.ServletRequest;
import com.ttx.pattern.example.chain.tomcat.servlet.ServletResponse;

/**
 *
 * 参考 javax.servlet.Filter
 *
 * @author TimFruit
 * @date 19-5-11 下午6:08
 */
public interface Filter {

    public void init(FilterConfig filterConfig) ;


    public void doFilter(ServletRequest request, ServletResponse response,
                         FilterChain chain) ;

    public void destroy();
}
